package com.zp.base;

public class Parameter {
	int age = 20;
	
	public void change1(Parameter p){
		p.age = 30;
	}
	
	public void change2(int age){
		age = 40;
	}
	
	public static void main(String [] args){
		Parameter p = new Parameter();
		
		int age = p.age;
		System.out.println(age);
		
		p.change1(p);
		int age1 = p.age;
		System.out.println(age1);
		
		int i = 10;
		p.change2(i);
		System.out.println(p.age);
	}
}
